package salary

type PaymentMethod interface {
	Pay(paycheck Paycheck)
}

// HoldMethod
type HoldMethod struct {
	PaymentMethod
}

func (h *HoldMethod) Pay(paycheck Paycheck) {
	paycheck.PayMethod = "HoldMethod"
}

// MailMethod
type MailMethod struct {
	PaymentMethod
}

func (h *MailMethod) Pay(paycheck Paycheck) {
	paycheck.PayMethod = "MailMethod"
}

// DirectMethod
type DirectMethod struct {
	PaymentMethod
}

func (h *DirectMethod) Pay(paycheck Paycheck) {
	paycheck.PayMethod = "DirectMethod"
}




